package org.dizem.groupon.service.impl;

import org.dizem.groupon.dao.ImageDAO;
import org.dizem.groupon.model.domain.ImageEntity;
import org.dizem.groupon.service.ImageService;

import java.util.List;

/**
 * User: dizem@126.com
 * Time: 11-6-27 上午12:00
 */
public class ImageServiceImpl implements ImageService {
	private ImageDAO imageDAO;

	public ImageDAO getImageDAO() {
		return imageDAO;
	}

	public void setImageDAO(ImageDAO imageDAO) {
		this.imageDAO = imageDAO;
	}

	public void save(ImageEntity object) {
		imageDAO.save(object);
	}

	public void delete(ImageEntity object) {
		imageDAO.delete(object);
	}

	public void update(ImageEntity object) {
		imageDAO.update(object);
	}

	public ImageEntity getById(int id) {
		return imageDAO.getById(id);
	}

	public List<ImageEntity> loadAll() {
		return imageDAO.loadAll();
	}

	public List<ImageEntity> load(int firstResult, int maxResult) {
		return imageDAO.load(firstResult, maxResult);
	}

	public int getCount() {
		return imageDAO.getCount();
	}
}
